package com.yhsx.jenkins.d3.pojo;

import java.util.Objects;

/**
 * 实体
 *
 * @author slf
 * @since 2024/5/10 9:03
 **/
public class Demo {
    String id;
    String name;
    String age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public Demo() {

    }

    public Demo(String id, String name, String age) {

        this.id = id;

        this.name = name;

        this.age = age;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Demo demo = (Demo) o;
        if (hashCode() != demo.hashCode()) return false;
        return Objects.equals(id, demo.id) && Objects.equals(name, demo.name) && Objects.equals(age, demo.age);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, age);
    }

    @Override
    public String toString() {
        return "Demo{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
